#ifndef EYERWANDARTIST_EWAUITRACKSCROLLCONTENTLAYOUT_HPP
#define EYERWANDARTIST_EWAUITRACKSCROLLCONTENTLAYOUT_HPP

#include "EWAUITrackHeader.hpp"
#include "EWAUITimelineContext.hpp"
#include "EWAUIRuleWidget.hpp"
#include "EWAUITrackBody.hpp"

#include "EWAUIWidget/EWAUIWidgetHeader.hpp"
#include "EWAUIWidget/EWAUIWidgetHorizontalSegBar.hpp"

namespace Eyer
{
    class EWAUITrackScrollContentLayout : public EWAUILayout
    {
    public:
        virtual int OnDraw() override;
        virtual bool OnMouseMoveEvent (const Vec2I & pos) override;

    public:
        EWAUITrackScrollContentLayout(EyerSmartPtr<EWAUITimelineContext> _timelineCtx, EWAUILayoutParams width, EWAUILayoutParams height);
        ~EWAUITrackScrollContentLayout();

    private:
        EyerSmartPtr<EWAUITimelineContext> timelineCtx;

        EyerSmartPtr<EWAUITrackHeader> trackHeader;
        EyerSmartPtr<EWAUIWidgetHorizontalSegBar> horizontalSegBar;
        EyerSmartPtr<EWAUIWidgetScroll> trackBodyScroll;
    };
}

#endif //EYERWANDARTIST_EWAUITRACKSCROLLCONTENTLAYOUT_HPP
